package cn.kgc.spring.day05.service.impl;

import cn.kgc.spring.day05.entity.User;
import cn.kgc.spring.day05.mapper.UserMapper;
import cn.kgc.spring.day05.service.AccountService;
import cn.kgc.spring.day05.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/11/8
 * @description
 */
@Service

public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Autowired
    private AccountService accountService;


    // @Transactional
    @Override
    public List<User> userList() {

        return  userMapper.selectUserList();

        // accountService.transfer()

    }


}
